<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
		
	<!-- INPUT EXAMPLE: updateBalance.xml -->
	<xsl:template match="/">
		<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
			<S:Body>
				<ns2:validateTransferRequest xmlns:ns2="http://bank/">
					<arg0>
						<fromAccountId>1</fromAccountId><!-- Phasebook account number -->
						<sourceSystemId>1</sourceSystemId><!-- Phasebook systemId -->
						<toAccountId><xsl:value-of select="//accountId"/></toAccountId><!-- User account number -->
						<transferAmount><xsl:value-of select="0 - //amount"/></transferAmount>
						<transferId>0</transferId><!-- not used in this case -->
					</arg0>
				</ns2:validateTransferRequest>
			</S:Body>
		</S:Envelope>
	</xsl:template>
	
</xsl:stylesheet>